]> dgit.raspbian.org Git - grub2.git/commit
http: Prepend prefix when the HTTP path is relative
authorJavier Martinez Canillas <javierm@redhat.com>
Mon, 9 Jan 2023 23:30:43 +0000 (18:30 -0500)
committerSteve McIntyre <93sam@debian.org>
Wed, 23 Sep 2026 20:39:45 +0000 (21:39 +0100)
commit13529660d5c32fd0ec1b3aa1cad1f1ab64e7e904
tree85f2b697184ca19ed1bce38ba422c3ee4691387a
parent28dfb2d8d1afc4e1dc0c79530c1ccc6f6fd4164a
http: Prepend prefix when the HTTP path is relative

There are two different HTTP drivers that can be used when requesting an
HTTP resource: the efi/http that uses the EFI_HTTP_PROTOCOL and the http
that uses GRUB's HTTP and TCP/IP implementation.

The efi/http driver appends a prefix that is defined in the variable
http_path, but the http driver doesn't.  So using this driver and
attempting to fetch a resource using a relative path fails.  Match the
behavior of efi/http.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Co-authored-by: Robbie Harwood <rharwood@redhat.com>
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
Gbp-Pq: Topic network
Gbp-Pq: Name http-prepend-prefix-when-the-http-path-is-relative.patch
grub-core/net/http.c